﻿
using IBll;
using IDal;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bll
{
    /// <summary>
    /// 继承 食谱分类接口方法
    /// </summary>
    public class HelteTypebLL : IHelteTypebLL
    {

        /// <summary>
        /// 实现方法
        /// </summary>
        /// <param name="baserDa"></param>
         public HelteTypebLL(IBaserDal<HelteType> baserDa)
        {
            BaserDa = baserDa;
        }

        public IBaserDal<HelteType> BaserDa { get; }

        /// <summary>
        /// 绑定分类下拉框
        /// </summary>
        /// <returns>返回受影响行数</returns>
        public List<HelteType> helteTypes()
        {
             return BaserDa.GetValues().ToList();

        }

    }
}
